<template>
	<!-- 预约成功页面 -->
	<view class="main">
		<view class="content">
			<view class="icon">
				<icon type="success" size="80" color="#006EFF"/>
			</view>
			<view class="text">预约成功</view>
			<view class="text2">您已预约成功，请你持本人身份证按时就诊</view>
		</view>
		<view class="btn">
			<button class="btn2" @click="tiaoZhuan2">查看预约详情</button>
			<button class="btn3" @click="tiaoZhuan3">返回首页</button>
		</view>
	</view>
</template>

<script>
	export default {
		setup() {
			const tiaoZhuan2=()=>{
				uni.navigateTo({
					url: '/pages/home/bodyExamine/bookingDetails/bookingDetails'
				});
			}
			const tiaoZhuan3=()=>{
				uni.reLaunch({
					url: '/pages/home/index/index'
				});
			}
			return {tiaoZhuan2,tiaoZhuan3}
		}
	}
</script>

<style>
	.main{
		padding: 0 30rpx;
	}
	.content{
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.icon{
		padding-top: 50rpx;
		box-sizing: border-box;
	}
	image{
		width: 200rpx;
		height: 200rpx;
	}
	.text{
		font-size: 40rpx;
		padding: 20rpx;
		box-sizing: border-box;
	}
	.text2{
		font-size: 30rpx;
		color: grey;
	}
	.btn{
		width: 100%;
		margin-top: 300rpx;
	}
	.btn2{
		width: 100%;
		background-color: #006EFF;
		color: white;
		font-size: 30rpx;
		margin-bottom: 30rpx;
	}
	.btn3{
		width: 100%;
		background-color: #E2EDFE;
		color: #2E88FF;
		font-size: 30rpx;
	}
</style>
